// ignore_for_file: file_names

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class EdgeInsetsStyle {
  /// 左右/上下间距相同
  static edgeInsets(double leftAndRight, double topAndBottom) =>
      EdgeInsets.fromLTRB(
          leftAndRight.w, topAndBottom.w, leftAndRight.w, topAndBottom.w);

  /// 自定义间距
  static customMargin(double left, double top, double right, double bottom) =>
      EdgeInsets.fromLTRB(left.w, top.w, right.w, bottom.w);

  /// 单间距
  static only(
          {double left = 0.0,
          double top = 0.0,
          double right = 0.0,
          double bottom = 0.0}) =>
      EdgeInsets.fromLTRB(left.w, top.w, right.w, bottom.w);

  /// 所有间距相同
  static all(double value) =>
      EdgeInsets.fromLTRB(value.w, value.w, value.w, value.w);
}
